#ifndef ACBOOKMAIN_H
#define ACBOOKMAIN_H

#include <QMainWindow>
#include "acdb.h"

namespace Ui {
    class AcBookMain;
}

class AcBookMain : public QMainWindow
{
    Q_OBJECT

public:
    explicit AcBookMain(QWidget *parent = 0);
    ~AcBookMain();

    Ui::AcBookMain *ui;

private:
    AcDB* m_db;
    QList< QList<QVariant> > typeSelections;
    void on_clear_ToolbarButton(QWidget* checked);

private slots:
    void on_femaleSalary_editingFinished();
    void on_maleSalary_editingFinished();
    void on_newItemAddButton_clicked();
    void on_newItemCancelButton_clicked();
    void on_viewCalcSiBt_clicked();
    void on_viewCalcMortgageBt_clicked();
    void on_viewConfigrationBt_clicked();
    void on_viewSelectedItemsBt_clicked();
    void on_viewExImportBt_clicked();
    void on_todayButton_clicked();
    void on_viewAssetsBt_clicked();
    void on_viewFinancialReportBt_clicked();
    void on_viewIoStatistictBt_clicked();
    void on_viewItemSearchBt_clicked();
    void on_viewNewItemBt_clicked();
    void on_newItemCalendar_selectionChanged();

public slots:
    void onItemModify();
    void onItemDelete();
};

#endif // ACBOOKMAIN_H
